#ifndef SPRITESHEETRENDER_2018
#define SPRITESHEETRENDER_2018

#include "picturerender.h"
#include "spritesheetpicture.h"


class SpriteSheetRender : public PictureRender
{
private:
    SpriteSheetPicture* m_sheet;
    unsigned int m_showIndex;

public:
    SpriteSheetRender();
	virtual ~SpriteSheetRender() override;

public:
	virtual void update() override;
	virtual void render(GLfloat x,GLfloat y) override;
	void renderReverse(GLfloat x,GLfloat y);

public:
    void setSpriteSheetPicture(SpriteSheetPicture* sheet){m_sheet = sheet;}
    unsigned int getShowIndex()const{return m_showIndex;}
};







#endif // SPRITESHEETRENDER_2018
